package com.dhcc.android.base.common.bean;

import java.io.Serializable;
import java.util.List;

/**
 * 
 * 
 * @author zhoudan
 * @date 2015年5月27日
 */
public class WholeTask implements Serializable {

    private String title;
    
    private String theme;
    
    private String province;
    
    private String county;
    
    private String description;
    
    private List<TaskLayer> Layers;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<TaskLayer> getLayers() {
        return Layers;
    }

    public void setLayers(List<TaskLayer> layers) {
        Layers = layers;
    }
    
    
    public TaskLayer getTaskLayerByName(int name){
        TaskLayer t = null;
        
        if(Layers != null){
            for (TaskLayer tl : Layers) {
                if(tl.getName() == name){
                    t = tl;
                    break;
                }
            }
        }
        
        return t;
    }
}
